const express = require('express');
const router = express.Router();
const JobController = require('../controllers/jobController');
const auth = require('../middleware/auth');

// 发布新岗位
router.post('/', auth, JobController.createJob);

// 搜索岗位
router.get('/search', JobController.searchJobs);

// 获取岗位详情
router.get('/:id', JobController.getJobDetail);

// 更新岗位状态
router.patch('/:id/status', auth, JobController.updateJobStatus);

module.exports = router; 